package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.Smalluser;
import com.ruoyi.system.mapper.InstitutionUserMapper;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.InstitutionUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class InstitutionUserServiceImpl implements InstitutionUserService {

    @Autowired
    private InstitutionUserMapper userMapper;
    @Override
    public boolean addItUser(Smalluser user) {
        return userMapper.addItUser(user);
    }

    @Override
    public boolean removeUser(long suId) {
        return userMapper.removeUser(suId);
    }

    @Override
    public boolean editUser(Smalluser user) {
        return userMapper.editUser(user);
    }

    @Override
    public List<Smalluser> selectUserList(long itId) {
        return userMapper.selectUserList(itId);
    }

    @Override
    public Smalluser querySmalleruser(long suId) {
        return userMapper.querySmalleruser(suId);
    }

    @Override
    public boolean checkPhoneUnique(Smalluser smalluser) {
        return userMapper.checkPhoneUnique(smalluser)==0?true:false;
    }

    @Override
    public List<Smalluser> selectUser(Smalluser smalluser) {
        return userMapper.selectUser(smalluser);
    }
}
